<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-16
 * Time: 14:16
 */

namespace app\api\validate\address;


use app\api\validate\BaseValidate;

class CheckAddress extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:20',
        'mobile' => 'require|mobile',
        'province' => 'require|max:50',
        'city' => 'require|max:50',
        'county' => 'require|max:50',
        'default' => 'require|in:0,1',
        'address' => 'require|max:100',
    ];

    protected $message = [
        'name' => '请输入姓名且长度不能大于20',
        'mobile' => '请输入正确的手机号',
        'province' => '请选择省份',
        'city' => '请选择城市',
        'county' => '请选择区/县',
        'default' => '请选择正确的默认状态',
        'address' => '请输入详细地址且长度不大于100',
    ];
}